import request from '@/api/axios.config';
import type { IOriginMenuItem } from '@code4x/types';
export const useUserAuthApi = {
  /**
   * 获取当前用户菜单
   * @returns
   */
  getMenus: (): Promise<RequestResponse<IOriginMenuItem[]>> => {
    return request({
      url: '/api/home/menu/list',
      method: 'get',
    });
  },
  /**
   * 获取当前用户菜单
   * @returns
   */
  getPermissions: () => {
    return request({
      url: '/api/home/permission/list',
      method: 'get',
    });
  },
};
